﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.ksd.Test
{
    internal class computer
    {
        private List <string> parts = new List<string>();

        public void Add(string partStr) {
            parts.Add(partStr);
        }

        public void show() {
            Console.WriteLine("电脑开始组装");
            foreach (var item in parts) {
                Console.WriteLine("组件完成安装",item);
            }
            Console.WriteLine("电脑组装完成");
        }
    }
}
